﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IBLL
{
     public interface IBaseBLL<T>
    {//侯海啸
        int Add(T model);
        List<T> GetAll();
        int Delete(int id);
        int Delete(T model);
        int Update(T model);
        T GetOne(int id);
        List<T> Search(int pageSize, int pageIndex, bool isDesc, Func<T, bool> where);
        int GetCount(Func<T, bool> where);

        List<T> Search(Func<T, bool> where);
        int SaveChange();
        DbContextTransaction BeginTran();
    }
}
